package com.lightsh.action;

import org.jbox2d.common.Vec2;

import com.lightsh.body.PhysicsBody;
import com.lightsh.interfaces.creator.IActionCreator;

public class ApplyForce implements IActionCreator{
	public final PhysicsBody mPhysicsBody;
	public final Vec2 mForceVec2;
	
	public ApplyForce(PhysicsBody body, Vec2 forceVec2){
		mPhysicsBody = body;
		mForceVec2 = forceVec2;
	}
	@Override
	public void doAction() {
		mPhysicsBody.getBody().applyForce(mForceVec2, mPhysicsBody.getBody().getWorldCenter());
	}

}
